package com.youzhi.backend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.youzhi.backend.entity.Button;
import com.youzhi.backend.mapper.ButtonMapper;
import com.youzhi.backend.service.IButtonService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 按钮表 服务实现类
 * </p>
 *
 * @author xumeng
 * @since 2022-12-02
 */
@Service
public class ButtonServiceImpl extends ServiceImpl<ButtonMapper, Button> implements IButtonService {


    @Override
    public List<Button> getByMenuId(Long menuId) {
        QueryWrapper<Button> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("menuId", menuId);
        return list(queryWrapper);
    }




}
